
public class pingfen {
	private int max,min,no;
	private double grade;
	private String name;
	public pingfen(int no){
		this.no=no;
	}
	public double grade(int score[]){
		int min=score[0],max=score[0];
		int sum=0;
		for(int i=0;i<10;i++)
		{
			if(min>score[i])
				min=score[i];
			if(max<score[i])
				max=score[i];
			sum=sum+score[i];
		}
		grade=(sum-min-max)/8.0;
		return grade;
	}
	
}
